<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C++ API Reference: 登录模块</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C++ API Reference
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#enum-members">枚举</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">登录模块</div>  </div>
</div><!--header-->
<div class="contents">

<p>用于初始化sdk以及登录 Juphoon Cloud 平台  
<a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_client_create_param.html">JCClientCreateParam</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_client_login_param.html">JCClientLoginParam</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_client.html">JCClient</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_client_callback.html">JCClientCallback</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:ga8b1b44e57fff02634fd4637428a70020"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga8b1b44e57fff02634fd4637428a70020">JCClientReason</a> { <br />
&#160;&#160;<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a8679bbb4cda4eef3eaf735b653a8f30b">JCClientReasonNone</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a555237c15a4b12568003ebe8af59de24">JCClientReasonSDKNotInit</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a5da1da09cca6cf675ca4a2708c4e01a4">JCClientReasonInvalidParam</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a54e822fe175652a675994f6cad583b06">JCClientReasonCallFunctionError</a>, 
<br />
&#160;&#160;<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a0792bbae4aa41fb525ace018ee42599f">JCClientReasonTimeOut</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a1b8394d4fec3608f0c962238732997f7">JCClientReasonNetWork</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020adff4cf9f9aef2aabeffc811ac4378e0f">JCClientReasonAppKey</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020af634366195720c0edca44afb093cb6a2">JCClientReasonAuth</a>, 
<br />
&#160;&#160;<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a29796f9bce7e56f4f0c5e6780fe1a82f">JCClientReasonNoUser</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a4f6712f6155418bc084cb3d465a48c30">JCClientReasonServerLogout</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a94fc7bf071e85599ffb81781489ed8f9">JCClientReasonAnotherDeviceLogined</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a0596cb9d9df44684af1d3bacfd443227">JCClientReasonLocalRequest</a>, 
<br />
&#160;&#160;<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a2ff1dc2495f2971c9ff4633985bb7573">JCClientReasonSendMessage</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020aa4e45226098134f473020b96623bfa5d">JCClientReasonServerBusy</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020abbd50f948ddb80b2d45f12abfd9474e3">JCClientReasonServerNotReach</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a13b28472c98a94a2101cacbf2923d6d3">JCClientReasonServerForbidden</a>, 
<br />
&#160;&#160;<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a7dc1e57f30d51463fbd8824d3c197ffd">JCClientReasonServerUnavaliable</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a6f75f610b37e4fcc3a1ab0cec42cf316">JCClientReasonDnsQuery</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a739092cb9931cdc963a11b3079f16866">JCClientReasonInternal</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a3d3e26304f457da5f458db5709c2a688">JCClientReasonNoResource</a>, 
<br />
&#160;&#160;<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020aa942b23f5a4670693bc65998ed6ae8e7">JCClientReasonNoNonce</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020ad19eaff528b48a20a6d3e84ebc8a3b48">JCClientReasonInvalidAuthCode</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a1c042728e0d52a1d0d586ca7fc21a33f">JCClientReasonTokenMismatch</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga8b1b44e57fff02634fd4637428a70020a413208f41a305525a3c992311f8b0ba0">JCClientReasonOther</a> = 100
<br />
 }</td></tr>
<tr class="separator:ga8b1b44e57fff02634fd4637428a70020"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5c6824014f5c55e65de4010f908e1eaa"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga5c6824014f5c55e65de4010f908e1eaa">JCClientState</a> { <br />
&#160;&#160;<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga5c6824014f5c55e65de4010f908e1eaaa5a6b582ba8275e39567b419ce05b7860">JCClientStateNotInit</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga5c6824014f5c55e65de4010f908e1eaaaa455b750bbf9c4d8e2162eb29255c67f">JCClientStateIdle</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga5c6824014f5c55e65de4010f908e1eaaa8346c85a19f76aae4e61756dd83c761d">JCClientStateLogining</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga5c6824014f5c55e65de4010f908e1eaaae234aaca0d7d17f56ac4646c1ce4c0b7">JCClientStateLogined</a>, 
<br />
&#160;&#160;<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga5c6824014f5c55e65de4010f908e1eaaa5bdd4f3d018ad3132fa241156101d2e3">JCClientStateLogouting</a>
<br />
 }</td></tr>
<tr class="separator:ga5c6824014f5c55e65de4010f908e1eaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga35ce69680dd6a45a6d2f99566ff02a03"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga35ce69680dd6a45a6d2f99566ff02a03">JCLogLevel</a> { <a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga35ce69680dd6a45a6d2f99566ff02a03abc3ed4c360e77f7ef6f5107cd12086cd">JCLogLevelDisable</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga35ce69680dd6a45a6d2f99566ff02a03ae9b46821bb37488dcf83d728f0b91a74">JCLogLevelError</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga35ce69680dd6a45a6d2f99566ff02a03aa7b5a5e68d3694e80564055c3b1709ed">JCLogLevelInfo</a>, 
<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga35ce69680dd6a45a6d2f99566ff02a03a03e6f2f70dd63281a39d8d604b9a9cc5">JCLogLevelDebug</a>
 }</td></tr>
<tr class="separator:ga35ce69680dd6a45a6d2f99566ff02a03"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga2d6fc4f203884536ff69bfe0e0ed300f"><td class="memItemLeft" align="right" valign="top">JCSDK_API <a class="el" href="class_j_c_client.html">JCClient</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga2d6fc4f203884536ff69bfe0e0ed300f">createJCClient</a> (const char *appKey, <a class="el" href="class_j_c_client_callback.html">JCClientCallback</a> *callback, <a class="el" href="class_j_c_client_create_param.html">JCClientCreateParam</a> *createParam)</td></tr>
<tr class="separator:ga2d6fc4f203884536ff69bfe0e0ed300f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1ffd007a058115a0676a84a7d5f42dbf"><td class="memItemLeft" align="right" valign="top">JCSDK_API void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga1ffd007a058115a0676a84a7d5f42dbf">destroyJCClient</a> ()</td></tr>
<tr class="separator:ga1ffd007a058115a0676a84a7d5f42dbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<p>用于初始化sdk以及登录 Juphoon Cloud 平台 </p>
<h2 class="groupheader">枚举类型说明</h2>
<a id="ga8b1b44e57fff02634fd4637428a70020"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8b1b44e57fff02634fd4637428a70020">&#9670;&nbsp;</a></span>JCClientReason</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga8b1b44e57fff02634fd4637428a70020">JCClientReason</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>原因枚举 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a8679bbb4cda4eef3eaf735b653a8f30b"></a>JCClientReasonNone&#160;</td><td class="fielddoc"><p>正常 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a555237c15a4b12568003ebe8af59de24"></a>JCClientReasonSDKNotInit&#160;</td><td class="fielddoc"><p>sdk 未初始化 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a5da1da09cca6cf675ca4a2708c4e01a4"></a>JCClientReasonInvalidParam&#160;</td><td class="fielddoc"><p>无效参数 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a54e822fe175652a675994f6cad583b06"></a>JCClientReasonCallFunctionError&#160;</td><td class="fielddoc"><p>函数调用失败 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a0792bbae4aa41fb525ace018ee42599f"></a>JCClientReasonTimeOut&#160;</td><td class="fielddoc"><p>登录超时 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a1b8394d4fec3608f0c962238732997f7"></a>JCClientReasonNetWork&#160;</td><td class="fielddoc"><p>网络异常 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020adff4cf9f9aef2aabeffc811ac4378e0f"></a>JCClientReasonAppKey&#160;</td><td class="fielddoc"><p>appkey 错误 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020af634366195720c0edca44afb093cb6a2"></a>JCClientReasonAuth&#160;</td><td class="fielddoc"><p>账号密码错误 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a29796f9bce7e56f4f0c5e6780fe1a82f"></a>JCClientReasonNoUser&#160;</td><td class="fielddoc"><p>无该用户 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a4f6712f6155418bc084cb3d465a48c30"></a>JCClientReasonServerLogout&#160;</td><td class="fielddoc"><p>被强制登出 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a94fc7bf071e85599ffb81781489ed8f9"></a>JCClientReasonAnotherDeviceLogined&#160;</td><td class="fielddoc"><p>登录其他设备 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a0596cb9d9df44684af1d3bacfd443227"></a>JCClientReasonLocalRequest&#160;</td><td class="fielddoc"><p>本地请求失败 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a2ff1dc2495f2971c9ff4633985bb7573"></a>JCClientReasonSendMessage&#160;</td><td class="fielddoc"><p>发消息失败 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020aa4e45226098134f473020b96623bfa5d"></a>JCClientReasonServerBusy&#160;</td><td class="fielddoc"><p>服务器忙 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020abbd50f948ddb80b2d45f12abfd9474e3"></a>JCClientReasonServerNotReach&#160;</td><td class="fielddoc"><p>服务器不可达 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a13b28472c98a94a2101cacbf2923d6d3"></a>JCClientReasonServerForbidden&#160;</td><td class="fielddoc"><p>服务器不可达 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a7dc1e57f30d51463fbd8824d3c197ffd"></a>JCClientReasonServerUnavaliable&#160;</td><td class="fielddoc"><p>服务器不可用 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a6f75f610b37e4fcc3a1ab0cec42cf316"></a>JCClientReasonDnsQuery&#160;</td><td class="fielddoc"><p>DNS 查询错误 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a739092cb9931cdc963a11b3079f16866"></a>JCClientReasonInternal&#160;</td><td class="fielddoc"><p>服务器内部错误 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a3d3e26304f457da5f458db5709c2a688"></a>JCClientReasonNoResource&#160;</td><td class="fielddoc"><p>无资源 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020aa942b23f5a4670693bc65998ed6ae8e7"></a>JCClientReasonNoNonce&#160;</td><td class="fielddoc"><p>没有回应验证码 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020ad19eaff528b48a20a6d3e84ebc8a3b48"></a>JCClientReasonInvalidAuthCode&#160;</td><td class="fielddoc"><p>无效验证码 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a1c042728e0d52a1d0d586ca7fc21a33f"></a>JCClientReasonTokenMismatch&#160;</td><td class="fielddoc"><p>token不匹配 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga8b1b44e57fff02634fd4637428a70020a413208f41a305525a3c992311f8b0ba0"></a>JCClientReasonOther&#160;</td><td class="fielddoc"><p>其他错误 </p>
</td></tr>
</table>

</div>
</div>
<a id="ga5c6824014f5c55e65de4010f908e1eaa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5c6824014f5c55e65de4010f908e1eaa">&#9670;&nbsp;</a></span>JCClientState</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga5c6824014f5c55e65de4010f908e1eaa">JCClientState</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>状态 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="gga5c6824014f5c55e65de4010f908e1eaaa5a6b582ba8275e39567b419ce05b7860"></a>JCClientStateNotInit&#160;</td><td class="fielddoc"><p>未初始化 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5c6824014f5c55e65de4010f908e1eaaaa455b750bbf9c4d8e2162eb29255c67f"></a>JCClientStateIdle&#160;</td><td class="fielddoc"><p>未登录 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5c6824014f5c55e65de4010f908e1eaaa8346c85a19f76aae4e61756dd83c761d"></a>JCClientStateLogining&#160;</td><td class="fielddoc"><p>登录中 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5c6824014f5c55e65de4010f908e1eaaae234aaca0d7d17f56ac4646c1ce4c0b7"></a>JCClientStateLogined&#160;</td><td class="fielddoc"><p>登录成功 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga5c6824014f5c55e65de4010f908e1eaaa5bdd4f3d018ad3132fa241156101d2e3"></a>JCClientStateLogouting&#160;</td><td class="fielddoc"><p>登出中 </p>
</td></tr>
</table>

</div>
</div>
<a id="ga35ce69680dd6a45a6d2f99566ff02a03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga35ce69680dd6a45a6d2f99566ff02a03">&#9670;&nbsp;</a></span>JCLogLevel</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga35ce69680dd6a45a6d2f99566ff02a03">JCLogLevel</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>日志等级 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="gga35ce69680dd6a45a6d2f99566ff02a03abc3ed4c360e77f7ef6f5107cd12086cd"></a>JCLogLevelDisable&#160;</td><td class="fielddoc"><p>disable日志等级 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga35ce69680dd6a45a6d2f99566ff02a03ae9b46821bb37488dcf83d728f0b91a74"></a>JCLogLevelError&#160;</td><td class="fielddoc"><p>error日志等级 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga35ce69680dd6a45a6d2f99566ff02a03aa7b5a5e68d3694e80564055c3b1709ed"></a>JCLogLevelInfo&#160;</td><td class="fielddoc"><p>info日志等级 </p>
</td></tr>
<tr><td class="fieldname"><a id="gga35ce69680dd6a45a6d2f99566ff02a03a03e6f2f70dd63281a39d8d604b9a9cc5"></a>JCLogLevelDebug&#160;</td><td class="fielddoc"><p>debug日志等级 </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="ga2d6fc4f203884536ff69bfe0e0ed300f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2d6fc4f203884536ff69bfe0e0ed300f">&#9670;&nbsp;</a></span>createJCClient()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">JCSDK_API <a class="el" href="class_j_c_client.html">JCClient</a>* createJCClient </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>appKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_j_c_client_callback.html">JCClientCallback</a> *&#160;</td>
          <td class="paramname"><em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_j_c_client_create_param.html">JCClientCreateParam</a> *&#160;</td>
          <td class="paramname"><em>createParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建 <a class="el" href="class_j_c_client.html">JCClient</a> 对象</p>
<p><a class="el" href="class_j_c_client.html">JCClient</a> 的所有接口函数，如无特殊说明，都建议在主线程调用</p>
<dl class="section note"><dt>注解</dt><dd><ul>
<li>请确保在调用其他 API 前先调用该方法创建并初始化 <a class="el" href="class_j_c_client.html">JCClient</a> 对象</li>
<li>调用此方法创建 <a class="el" href="class_j_c_client.html">JCClient</a> 对象后，期间没有调用过 <a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga1ffd007a058115a0676a84a7d5f42dbf">destroyJCClient</a> 方法销毁对象，然后又重复调用此方法，会直接返回第一次创建的 <a class="el" href="class_j_c_client.html">JCClient</a> 对象</li>
</ul>
</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">appKey</td><td>用户从 Juphoon Cloud 平台上创建应用获取的 AppKey 字符串，详见<a href="https://developer.juphoon.com/cn/document/V2.1/create-application.php">获取 appKey</a> </td></tr>
    <tr><td class="paramname">callback</td><td><a class="el" href="class_j_c_client_callback.html">JCClientCallback</a> 对象，用于回调相关通知 </td></tr>
    <tr><td class="paramname">createParam</td><td>创建参数，详细定义见 JCClientCreateParam。传 NULL 则使用默认值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="class_j_c_client.html">JCClient</a> 对象 </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">appKey、JCClientCallback 任意参数传空就会抛出异常</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga1ffd007a058115a0676a84a7d5f42dbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1ffd007a058115a0676a84a7d5f42dbf">&#9670;&nbsp;</a></span>destroyJCClient()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">JCSDK_API void destroyJCClient </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>销毁 <a class="el" href="class_j_c_client.html">JCClient</a> 对象 </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
